package com.lun.blog.service;

import com.lun.blog.pojo.Picture;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface PictureService  {

    Picture getPicture(Long id);

    Picture savePicture(Picture picture);

    boolean deletePicture(Long id);

    Page<Picture> listPage(Pageable pageable);

    Picture findByPictureName(String pictureName);

    List<Picture> findAll();
}
